]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/widget: Remove transitions when unmapped
authorJonas Ådahl <jadahl@gmail.com>
Sat, 3 Sep 2022 20:50:42 +0000 (22:50 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 25 Nov 2022 21:09:37 +0000 (22:09 +0100)
This avoids having animating timelines on invisible and detached actors.
This also silences some warnings about the timeline being running
without being attached to the stage.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>

src/st/st-widget.c

index 92d6456a1997ca842529a201ab3ced352df45da1..31c400bfa736c8533744b49fb8b38448c8bc5472 100644 (file)
@@ -494,6 +494,8 @@ st_widget_unmap (ClutterActor *actor)
 
   CLUTTER_ACTOR_CLASS (st_widget_parent_class)->unmap (actor);
 
+  st_widget_remove_transition (self);
+
   if (priv->track_hover && priv->hover)
     st_widget_set_hover (self, FALSE);
 }